<?php
//账号登录检查
$boss_id=is_cookie_login('boss');
if(empty($boss_id)){
	header('location: /boss/login');
	exit();
}

//检查账号状态
$bosobj=new boss();
$bosinfo=$bosobj->admin_boss_info($boss_id,'id,state');
if(empty($bosinfo) || $bosinfo['state']==0){
	del_cookie('boss');
	del_cookie('boss_info');
	header('location: /boss/login');exit();	
}
?>